﻿namespace MultiDAQ_Analysis.Calculation.Parameters
{
    public class GasSampleParameters : MeasurementParameters
    {
        public override string MeasurementType => "GasSample";

        public double SamplingVolume { get; set; } = 20.0; // L (1-1000000L)
        public double FilterEfficiency { get; set; } = 0.5; // % 转为小数形式 (1-100%)
        public double AbsorptionFactor { get; set; } = 0.3; // % 转为小数形式 (1-100%)
        public bool UseStandardEfficiency { get; set; } = true;

        public override bool Validate()
        {
            return SamplingVolume >= 1 && SamplingVolume <= 1000000 &&
                   FilterEfficiency > 0 && FilterEfficiency <= 1.0 &&
                   AbsorptionFactor > 0 && AbsorptionFactor <= 1.0;
        }
    }
}